﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Halcon二次开发.Model.用户属性
{
    [Serializable]
    public class UrseInformation
    {
        public UrseInformation() { }
        public UrseInformation(string ID) { 
            this.ID = ID;
        }
        public UrseInformation(string ID,string PassWord) { 
            this.ID=ID; 
            this.PassWord=PassWord;
        }
        public UrseInformation(string ID,string PassWord, string Post) { 
            this.ID = ID;   
            this.PassWord = PassWord;
            this.Post = Post;
        }
        /// <summary>
        /// 用户ID
        /// </summary>
        public string ID { get; set; }
        /// <summary>
        /// 用户密码
        /// </summary>
        public string PassWord { get; set; }
        /// <summary>
        /// 用户职位
        /// </summary>
        public string Post { get; set; }

        public override bool Equals(object obj)
        {
            return obj is UrseInformation information &&
                   ID == information.ID &&
                   PassWord == information.PassWord;
        }
    }
}
